using System;
using Microsoft.SPOT;
using Gadgeteer.Modules.GHIElectronics;
using Gadgeteer.Interfaces.Led;
using Gadgeteer.Interfaces.GHI.Btn;

namespace Gadgeteer.Interfaces
{
    public static class ButtonWrapperExtensions
    {
        public static IButton AsInterface(this Button value)
        {
            return new ButtonWrapper(value);
        }

        public static IToggleLed AsLedInterface(this Button value)
        {
            return new ButtonLedWrapper(value);
        }
    }
}
